package io.renren.modules.edu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.modules.edu.dto.TEduTrainTeacherDTO;
import io.renren.modules.edu.entity.TEduTrainTeacherEntity;
import io.renren.modules.edu.vo.TEduTrainTeacherVO;

import java.util.List;
import java.util.Map;

/**
 * 培训管理表
 *
 * @author zwp zwp
 * @since 1.0.0 2022-07-11
 */
public interface TEduTrainTeacherService extends IService<TEduTrainTeacherEntity> {

    /**
     * 保存
     * @param tEduTrainTeacherDTO
     */
    void save(TEduTrainTeacherDTO tEduTrainTeacherDTO);

    /**
     * 修改
     * @param tEduTrainTeacherDTO
     */
    void update(TEduTrainTeacherDTO tEduTrainTeacherDTO);

    /**
     * 获取该教师的报名情况
     * @param teacherInfoId
     * @return
     */
    Map<Long, List<TEduTrainTeacherVO>> queryTrainToTeacher(Long teacherInfoId);

    /**
     * 参与报名
     * @param eduTrainId
     * @param eduTeacherInfoId
     */
    void confirmTrain(Long eduTrainId, Long eduTeacherInfoId);

    /**
     * 删除该活动下的教师情况
     * @param eduTrainId
     * @return
     */
    void deleteTrainTeaByTrainId(Long eduTrainId);
}
